<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of logger
 *
 * @author Jira
 */
class logger {
    //put your code here
    private static $inctance = null;
    private static $log;

    private function __construct(){
        
    }

    public static function getInstance() {
        if(is_null(self::$instance))
            self::$inctance = new self();
        return self::$instance;

    }

    public static function info($message,$file,$line) {
        self::$log .= "Info :".$message." in ".$file." on line ".$line."\n";
    }

    public static function display() {
        return '<div id="log">'.nl2br(self::$log).'</div>';
    }
}
?>
